package com.tmjx.controller;

import com.tmjx.entitys.dto.LoginDTO;
import com.tmjx.resp.VfResult;
import com.tmjx.service.LoginService;
import com.tmjx.service.UserService;
import com.tmjx.web.ILoginWeb;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author 33117
 * @version 1.0
 * @data 2025/8/19 17:04
 */
@Component
public class LoginController implements ILoginWeb {

    @Resource
    private UserService userService;
    @Resource
    private LoginService loginService;

    @Override
    public VfResult login(LoginDTO loginDTO) {
        return loginService.login(loginDTO);
    }

    @Override
    public VfResult logout() {
        return loginService.logout();
    }
}
